package org.sixtynine.stock.service;

/**
 * @author Thilan
 *
 */

import java.util.Date;
import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.IntradaySectorData;
import org.sixtynine.stock.entity.Sector;

public interface IntradaySectorDataService {

	IntradaySectorData findById(int id);

	void saveIntradaySectorData(IntradaySectorData intradaySectorData);

	void deleteIntradaySectorData(int id);

	List<IntradaySectorData> findIntradaySectorData(Sector sector);
	
	List<IntradaySectorData> searchIntradaySectorData(int sectorId, Date fromDate,
			Date toDate);

	Page<IntradaySectorData> searchIntradaySectorData(int sectorId, Date fromDate,
			Date toDate, GridPramDTO gridPramDTO);
	
	public void deleteOldRecords();
	
}
